package com.itheima.listener;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(consumerGroup = "base-group" ,topic = "tanhua-base")
public class BaseMessageListener implements RocketMQListener<String> {
    @Override
    public void onMessage(String message) {
        System.out.println("收到了"+message);
    }
}
